Skip to main content

Interface: PreviewStreamController

Properties

audioInput

audioInput: PreviewInput


audioInputChanged

audioInputChanged: boolean


cleanup

cleanup: () => Promise<void>

Type declaration

▸ (): Promise<void>

Returns

Promise<void>


inputChanged

inputChanged: boolean


media

media: Media


updatingMain

updatingMain: boolean


updatingPreview

updatingPreview: boolean


videoInput

videoInput: PreviewInput


videoInputChanged

videoInputChanged: boolean

Methods

applyChanges

applyChanges(force?): Promise<void>

Parameters

NameType
force?boolean

Returns

Promise<void>


onApplyChangesError

onApplyChangesError(callback): Unsubscribe

Parameters

NameType
callbackEventErrorCallback

Returns

Unsubscribe


onAudioInputChanged

onAudioInputChanged(callback): Unsubscribe

Parameters

NameType
callbackEventCallback<PreviewInput>

Returns

Unsubscribe


onAudioInputError

onAudioInputError(callback): Unsubscribe

Parameters

NameType
callbackEventErrorCallback

Returns

Unsubscribe


onMediaChanged

onMediaChanged(callback): Unsubscribe

Parameters

NameType
callbackEventCallback<Media>

Returns

Unsubscribe


onRevertChangesError

onRevertChangesError(callback): Unsubscribe

Parameters

NameType
callbackEventErrorCallback

Returns

Unsubscribe


onUpdatingMain

onUpdatingMain(callback): Unsubscribe

Parameters

NameType
callbackEventCallback<boolean>

Returns

Unsubscribe


onUpdatingPreview

onUpdatingPreview(callback): Unsubscribe

Parameters

NameType
callbackEventCallback<boolean>

Returns

Unsubscribe


onVideoInputChanged

onVideoInputChanged(callback): Unsubscribe

Parameters

NameType
callbackEventCallback<PreviewInput>

Returns

Unsubscribe


onVideoInputError

onVideoInputError(callback): Unsubscribe

Parameters

NameType
callbackEventErrorCallback

Returns

Unsubscribe


revertChanges

revertChanges(): Promise<void>

Returns

Promise<void>


updateAudioInput

updateAudioInput(input): void

Parameters

NameType
inputPreviewInput

Returns

void


updateVideoInput

updateVideoInput(input): void

Parameters

NameType
inputPreviewInput

Returns

void